package edu.uow.devdocs
/**
 * The DeploymentChecklist entity.
 *
 * @author    
 *
 *
 */
class DeploymentChecklist {
    static mapping = {
         table 'DEPLOYMENT_CHECKLIST'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'DEPLOYMENT_CHECKLIST_ID'
		 id generator: 'sequence', params:[sequence:'DEPLOYMENT_CHECKLIST_SEQ']
         status column:'STATUS'
         deployment column:'DEPLOYMENT_ID'
		 sort checklist:'ASC'
    }
    String description
    Checklist checklist
    Date lastUpdated
    // Relation
    DeploymentChecklistStatus status
    // Relation
    Deployment deployment

    static constraints = {
        checklist(nullable: true)
        description(size: 0..255)
        lastUpdated(nullable: true)
        status()
        deployment()
    }
    String toString() {
        return "${description}" 
    }
}
